import { Navigate } from "react-router-dom"
import One from "../one"
import Tow from "../tow"
import Three from "../three"
import New from "../pages/new"
import Messg from "../pages/messg"
import Acc from "../pages/aa"
export default [
    {
        path: '/one',
        element: <One></One>
    },
    {
        path: '/tow',
        element: <Tow></Tow>
    },
    {
        path: '/three',
        element: <Three></Three>,
        children: [
            {
                path: "new",
                element: <New></New>
            },
            {
                path: 'messg',
                element: <Messg></Messg>,
                children: [
                    {
                        path: "acc/:id/:title/:messg",
                        element: <Acc></Acc>
                    }
                ]
            }
        ]
    },
    {
        path: '/',
        element: <Navigate to="/one" />
    }
]
